package com.zqweb.gulimall.ware;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.zqweb.gulimall.ware.dao")
@EnableRabbit // 开启RabbitMQ消息队列支持
@EnableDiscoveryClient // 开启服务发现与注册功能
@EnableFeignClients(basePackages = {"com.zqweb.gulimall.ware.feign"})
@EnableTransactionManagement // 开启事务管理功能，能扫描@Transactional注解，添加事务支持
public class Ware_MainApplication {
    public static void main(String[] args) {
        new SpringApplication(Ware_MainApplication.class).run(args);
    }
}
